package org.jeecg.modules.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.common.api.MemberAPI;
import org.jeecg.common.api.dto.MemberDTO;
import org.jeecg.modules.base.mapper.MemberCommMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: bike_pile
 * @Author: jeecg-boot
 * @Date:   2021-05-19
 * @Version: V1.0
 */
@Service
public class MemberAPIImpl extends ServiceImpl<MemberCommMapper, MemberDTO> implements MemberAPI {

    @Autowired
    private MemberCommMapper memberCommMapper;


    @Override
    public MemberDTO getMember(String phone) {
        QueryWrapper qw = new QueryWrapper();
        qw.eq("phone",phone);
        qw.ne("status","4");
        MemberDTO member= memberCommMapper.selectOne(qw);
        return member;
    }
}
